package com.rs.game.player.dialogues;

import com.rs.utils.ShopsHandler;

public class ToolLeprechaun extends Dialogue {
	
	private int npcId;

	@Override
	public void start() {
		npcId = (Integer) parameters[0];
		sendNPCDialogue(npcId, Expressions.HAPPY_TALKING, "How may I help you today?");
	}

	@Override
	public void run(int interfaceId, int componentId) {
		switch (stage) {
		case -1:
			sendOptionsDialogue("Select an option", "I would like to view your shops.", "Nothing, thanks.");
			stage = 0;
			break;
		case 0:
			switch (componentId) {
			case OPTION_1:
				sendNPCDialogue(npcId, Expressions.HAPPY_TALKING, "Certainly! Which shop would you like to view?");
				stage = 1;
				break;
			case OPTION_2:
				sendPlayerDialogue(Expressions.HAPPY_TALKING, "Nothing, thanks.");
				stage = 3;
				break;
			}
			break;
		case 1:
			sendOptionsDialogue("Farming Shops", "Tools", "Allotment Seeds", "Herb Seeds", "Flower Seeds");
			stage = 2;
			break;
		case 2:
			switch (componentId) {
			case OPTION_1:
				ShopsHandler.openShop(player, 24);
				end();
				break;
			case OPTION_2:
				ShopsHandler.openShop(player, 25);
				end();
				break;
			case OPTION_3:
				ShopsHandler.openShop(player, 26);
				end();
				break;
			case OPTION_4:
				ShopsHandler.openShop(player, 27);
				end();
				break;
			}
			break;
		case 3:
			end();
			break;
		}
	}

	@Override
	public void finish() {
		// TODO Auto-generated method stub
		
	}}